/******************************************************************************
 * Copyright (C) 2017 Chengdu Dlhd information industry co. LTD.
 * All Rights Reserved.
 * 本软件为成都顶联互动信息产业有限公司开发研制。未经本公司正式书面同意，其他任何个人、团体不得使用、复制、修改或发布本软件.
 *****************************************************************************/
package net.dgg.dggcloud.service.jrcrm.entity.cms;


import net.dgg.dggcloud.service.entity.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @ClassName 〈CmsOriginCost>
 * @Description 渠道成本实体
 * @Author 朱永波
 * @Date 2017/11/10 10:34
 */
@Entity
@Table(name = "cms_origin_cost")
public class CmsOriginCost  extends BaseEntity {

    /**
     * 渠道code,字典表
     */
    @Column(name = "origin_code")
    private String originCode;
    /**
     * 渠道ID,对应字典表的id
     */
    @Column(name = "origin_id")
    private Long originId;
    /**
     * 成本方式，1计算成本，2业绩提成
     */
    @Column(name = "cost_type")
    private Integer costType;
    /**
     * 成本值，方式为1时，为固定金额，单位为分；方式为2时，值为百分比
     */
    @Column(name = "cost_value")
    private Long costValue;
    /**
     * 商务是否可见
     */
    @Column(name = "personnel_see")
    private Integer personnel_see;
    /**
     * 状态 1启用，0停用
     */
    @Column(name = "status")
    private Integer status;

    public String getOriginCode() {
        return originCode;
    }

    public void setOriginCode(String originCode) {
        this.originCode = originCode;
    }

    public Long getOriginId() {
        return originId;
    }

    public void setOriginId(Long originId) {
        this.originId = originId;
    }

    public Integer getCostType() {
        return costType;
    }

    public void setCostType(Integer costType) {
        this.costType = costType;
    }

    public Long getCostValue() {
        return costValue;
    }

    public void setCostValue(Long costValue) {
        this.costValue = costValue;
    }

    public Integer getPersonnel_see() {
        return personnel_see;
    }

    public void setPersonnel_see(Integer personnel_see) {
        this.personnel_see = personnel_see;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}
